﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WatiN.Core;
using WatiN.Sharepoint.WebControls;

namespace WatiN.Sharepoint.Pages
{
    /// <summary>
    /// AllItems page. The page shown by default when listing items from a Sharepoint (document) library
    /// </summary>
    public class AllItems : BaseSPPage
    {
        /// <summary>
        /// List shown on the AllItems page
        /// </summary>
        public BaseSPList List
        {
            get
            {
                return Document.Controls<BaseSPList>().Last();
            }
        }
    }
}
